GetADBInfo
GetADBInfo Obtain information on the specified device
#include <DeskBus.h> ADB Manager
OSErr GetADBInfo(info, ADBAddr );
ADBDataBlock *info ; address of parameter block
ADBAddress ADBAddr ; value identifying device table index
returns Error Code; 0=no error
Use GetADBInfo to obtain current information about a device's address, ID,
service routine and data area.
info is a parameter block whose relevant fields are:
Out-In Name Type Size Offset Description
<- devHandlerID SignedByte 1 0 Device type ID
<- origADBAddr SignedByte 1 1 Original bus address
<- dbServiceRtPtr Ptr 4 2 Pointer to a service routine
<- dbDataAreaAddr Ptr 4 6 Pointer to a data area
ADBAddr is the index number on the device table of the entry being queried.
Returns: an operating system Error Code.
noErr (0) No error

Notes: The devHandlerID parameter indicates the device type, which the
application can change if the device is capable of various modes of operation.
Values below 0x20 are reserved by Apple and other specific values
precipitate actions rather than being stored to indicate device type: 0x00
changes bits 8 through 13 of register 3 to mirror the rest of the Listen
command but leaves the device type un changed; 0xFD, when sent by the
Listen command, changes the device address to match bits 8 through 11 if
the device activator is depressed but leaves the device type and the flags the
same as they were; 0xFE, when sent sent by the Listen command, will
change the device address to match bits 8 through 11 as long as no other
device already has that address but leaves the devHandlerID and flags
un changed; and 0xFF, when sent by the Listen command, causes the device
to run a self-test. A successful test leaves register 3 the same as before,
while a failed self-test clears the devHandlerID field to 0x00.